package com.xbongbong.saas.enums.dictionary;

import com.xbongbong.i18n.util.I18nMessageUtil;
import lombok.Getter;

/**
 * @author jiyonghui
 * @className InventoryNewStatusEnum
 * @description
 * @date 2020/1/17   10:43
 */
@Getter
public enum InventoryNewStatusEnum {
    // 盘点状态
    UNFINISHED("1", "enum.inventoryNewStatus.name.unfinished", "unfinished"),
    FINISHED("2", "enum.inventoryNewStatus.name.finished", "finished"),
    ;

    private String code;
    private String name;
    private String attr;

    InventoryNewStatusEnum(String code, String name, String attr) {
        this.code = code;
        this.name = name;
        this.attr = attr;
    }

    public String getName() {
        return I18nMessageUtil.getMessage(name);
    }
}
